import axios from '@/common/js/request.js';

export default {
	/**
	 * 查询收货列表
	 */
	list(params) {
		return axios.post(global.$host, 'api/v1/receivCargo/list', params);
	},
	/**
	 * 手动收货
	 */
	saveReceiveCargo(params) {
		return axios.post(global.$host, 'api/v1/receivCargo/saveReceivCargo', params);
	},
	/**
	 * 收货——入库单详情
	 */
	detail(billId) {
		return axios.get(global.$host, `api/v1/receivCargo/detail/${billId}`);
	},
	/**
	 * 收货——入库单明细
	 */
	billCargoList(params) {
		return axios.post(global.$host, 'api/v1/receivCargo/billCargoList', params);
	},
	/**
	 * 托盘收货
	 */
	palletReceiveCargo(params) {
		return axios.post(global.$host, 'api/v1/receivCargo/scanPalletReceiveCargo', params);
	}
};
